package com.xqb.modules.service.impl;

import com.xqb.modules.domain.po.ExaQuestionDetail;
import com.xqb.modules.mapper.ExaQuestionDetailMapper;
import com.xqb.modules.service.IExaQuestionDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 题目信息Service业务层处理
 * 
 * @author xqb
 * @date 2024-10-14
 */
@Service
public class ExaQuestionDetailServiceImpl implements IExaQuestionDetailService 
{
    @Autowired
    private ExaQuestionDetailMapper exaQuestionDetailMapper;

    /**
     * 查询题目信息
     * 
     * @param id 题目信息主键
     * @return 题目信息
     */
    @Override
    public ExaQuestionDetail selectExaQuestionDetailById(Long id)
    {
        return exaQuestionDetailMapper.selectExaQuestionDetailById(id);
    }

    /**
     * 查询题目信息列表
     * 
     * @param exaQuestionDetail 题目信息
     * @return 题目信息
     */
    @Override
    public List<ExaQuestionDetail> selectExaQuestionDetailList(ExaQuestionDetail exaQuestionDetail)
    {
        return exaQuestionDetailMapper.selectExaQuestionDetailList(exaQuestionDetail);
    }

    /**
     * 新增题目信息
     * 
     * @param exaQuestionDetail 题目信息
     * @return 结果
     */
    @Override
    public int insertExaQuestionDetail(ExaQuestionDetail exaQuestionDetail)
    {
        return exaQuestionDetailMapper.insertExaQuestionDetail(exaQuestionDetail);
    }

    /**
     * 修改题目信息
     * 
     * @param exaQuestionDetail 题目信息
     * @return 结果
     */
    @Override
    public int updateExaQuestionDetail(ExaQuestionDetail exaQuestionDetail)
    {
        return exaQuestionDetailMapper.updateExaQuestionDetail(exaQuestionDetail);
    }

    /**
     * 批量删除题目信息
     * 
     * @param ids 需要删除的题目信息主键
     * @return 结果
     */
    @Override
    public int deleteExaQuestionDetailByIds(Long[] ids)
    {
        return exaQuestionDetailMapper.deleteExaQuestionDetailByIds(ids);
    }

    /**
     * 删除题目信息信息
     * 
     * @param id 题目信息主键
     * @return 结果
     */
    @Override
    public int deleteExaQuestionDetailById(Long id)
    {
        return exaQuestionDetailMapper.deleteExaQuestionDetailById(id);
    }
}
